<template>
    <el-container>
        <el-aside class="left-bar" width="250px">
            <div class="logo" />
            <nav-menu :menus="menus"></nav-menu>
        </el-aside>
        <el-container>
            <el-main>
                <router-view />
            </el-main>
        </el-container>
    </el-container>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import NavMenu from './components/NavMenu.vue';

const menus = [
<#list tableModels as table>
<#include "/include/table/properties.ftl">
    { name: '${tableComment}', path: '/${tableShortPath}', type: 'menu-item' },
</#list>
]

export default defineComponent({
    components: { NavMenu },
    setup() {
        return {
            menus
        }
    },
})
</script>

<style lang="less">
.logo {
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    margin: 16px;
}
.left-bar {
    height: 100vh;
    background-color: #545c64;
}
.el-main {
    padding: 10px !important;
    height: 100vh;
}
</style>
